package org.example.servcie;

import org.springframework.stereotype.Component;

@Component(value = "productService")
public class ProductService
{
    public void save() {
        System.out.println("商品保存了。。。。。");

    }

    public int find() {
        System.out.println("商品查询数量了。。。。。");

        try {
            Thread.sleep((int)(Math.random()*10000));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return 99;
    }
}
